package com.aires.testspringioccontainer;


import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @program: spring
 * @description:
 * @author: fan zhengxiang
 * @create: 2020-10-17 01:42
 */
public class MainClass {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(UserConfig.class);

		User user = (User) context.getBean("user");
		
		System.out.println(user);
	}
}